<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : AccountCombo.xsl
    Created on : December 5, 2012, 5:31 PM
    Author     : Quang Nhat
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:ac='http://xml.netbeans.org/schema/Accounts'>
    <xsl:output method="html"/>
    <xsl:template match="/">
        <select name="cbAccount" id="">
            <xsl:for-each select="/ac:Accounts/ac:Account[not(@Active='false')]">
                <option>
                    <xsl:attribute name="value">
                        <xsl:value-of select="./@AccountNumber"/>
                    </xsl:attribute>
                    <xsl:value-of select="./@AccountNumber"/> 
                    <xsl:text> - </xsl:text>
                    <xsl:value-of select="./ac:AccountName"/>
                </option>
            </xsl:for-each>
        </select>
    </xsl:template>

</xsl:stylesheet>
